Skip to content

Conversation

@ZackarySantana
Copy link

Summary

This updates the token retrieval to strip the newline if present. I'm open to any alterations if needed!

Background & Motivation

I'm using fly.io and their token files unfortunately come with a new line at the end of them. It'd be nice if I didn't have to overwrite the file to remove the newline, but instead the assume role provider was more resilient.

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the review-priority-low Low Priority PR for Review: within 3 business days label Feb 28, 2025
@mongodb-drivers-pr-bot
Copy link
Contributor

API Change Report

No changes found!

@ZackarySantana
Copy link
Author

In the meantime, I'm using this as a workaround (in case anyone else runs in to this problem: https://gist.github.com/ZackarySantana/1aedd800f0b8a55227bb79c5e3ec4ebd)

@matthewdale matthewdale requested review from matthewdale and removed request for qingyang-hu March 11, 2025 18:34
@matthewdale
Copy link
Collaborator

Additional context:
After discussing with Zack, we decided to close this in favor of a more general improvement. I created GODRIVER-3504 to track the problem and proposed improvement(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-priority-low Low Priority PR for Review: within 3 business days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants